package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 优惠券对象 jiajia_coupon
 * 
 * @author knd
 * @date 2021-10-14
 */
public class JiajiaCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 优惠券金额 */
    @Excel(name = "优惠券金额")
    private Integer price;

    /** 获得时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd ")
    private Date addtime;

    /** 失效天数 */
    @Excel(name = "失效天数")
    private Integer sxDay;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String name;

    /** 满多少可以使用 */
    @Excel(name = "满多少可以使用")
    private Integer tiaoJian;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPrice(Integer price)
    {
        this.price = price;
    }

    public Integer getPrice()
    {
        return price;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setSxDay(Integer sxDay)
    {
        this.sxDay = sxDay;
    }

    public Integer getSxDay()
    {
        return sxDay;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public Integer getTiaoJian() {
        return tiaoJian;
    }

    public void setTiaoJian(Integer tiaoJian) {
        this.tiaoJian = tiaoJian;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("price", getPrice())
            .append("addtime", getAddtime())
            .append("sxDay", getSxDay())
            .append("name", getName())
            .append("tiaoJian", getTiaoJian())
            .toString();
    }
}
